<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>jQuery.noConflict(extreme)</title>
<meta name="keywords" content="jQuery 1.2 API Reference,Visual jQuery 1.2,jQuery doc,jQuery API,jQuery,jQuery 1.2 API 参考文档中文版,中文版" />
<meta name="description" content="jQuery 1.2 API 文档中文版，提供最新版 jQuery 开发帮助。" />
<link rel="stylesheet" type="text/css" href="../../style/jqueryapi.css" />
<script type="text/javascript" src="../../style/lib/jquery126.js"></script>
 </script>
<script type="text/javascript" src="../../style/jqueryapi.js"></script>
<link rel="shortcut icon" href="../../style/img/favicon.ico" />
</head>
<body>
<div id="topnav">
		<a href="http://www.jQuery.com/" title="jQuery官网" target="_blank" class="topnav">jQuery官网</a>
	<span class="topnav">|</span>
	<a href="http://jquery.org.cn/" title="jQuery中文网站" target="_blank" class="topnav">jQuery中文网站</a>
	<span class="topnav">|</span>
	<a href="http://www.cn-cuckoo.com/" title="1.1版译者" target="_blank" class="topnav">为之漫笔</a>
	<span class="topnav">|</span>
	<a href="http://shawphy.com/" title="1.2版翻译整理者" target="_blank" class="topnav">Shawphy</a>
    <span class="topnav">|</span>
	<a href="http://www.51toria.cn" title="CHM文档制作者:一揪" target="_blank" class="topnav">CHM文档制作者</a> 
	<span class="topnav">|</span>
	<a href="http://dl.getdropbox.com/u/81097/jQueryAPI_CHM.CHM" title="" target="_blank" class="topnav">CHM最新版本下载</a> 
</div>
<hr style="color:#595959;" />

<div class="content">
				<h1>jQuery.noConflict(extreme)</h1>
				<div class="desc">
				<div>将$和jQuery的控制权都交还给原来的库。<strong>用之前请考虑清楚!</strong></div> <div class="longdesc">这是相对于简单的 <strong>noConflict</strong> 方法更极端的版本，因为这将完全重新定义jQuery。这通常用于一种极端的情况，比如你想要将jQuery嵌入一个高度冲突的环境。<strong>注意:</strong>调用此方法后极有可能导致插件失效。</div><hr /><div>Revert control of both the $ and jQuery variables to their original owners. <strong>Use with discretion.</strong></div> <div class="longdesc">This is a more-extreme version of the simple <strong>noConflict</strong> method, as this one will completely undo what jQuery has introduced. This is to be used in an extreme case where you'd like to embed jQuery into a high-conflict environment. <strong>NOTE:</strong> It's very likely that plugins won't work after this particular method has been called.</div></div>
				<h2>返回值</h2>
				<p class="indent">jQuery</p>
				<h2>参数</h2>
				<p class="indent"><strong>extreme </strong>(Boolean) : 传入 true 来允许彻底将jQuery变量还原</p>
				<h2>示例</h2>
				<p class="indent">
					完全将 jQuery 移到一个新的命名空间。
				</p>
				<p class="indent"><strong>jQuery 代码:</strong></p>
				<div class="code">
					var dom = {};<br/>
dom.query = jQuery.noConflict(true); 
				</div>
				<p class="indent"><strong>结果:</strong></p>
				<div class="code">
					// 新 jQuery 的代码<br/>
dom.query("div p").hide();<br/>
// 另一个库 $() 的代码<br/>
$("content").style.display = 'none';<br/>
// 另一个版本 jQuery 的代码<br/>
jQuery("div &gt; p").hide(); 
				</div>
			</div>

</body>
</html>
